<?php
/**
 * Created by PhpStorm.
 * User: xiaofeng
 * motto: 现在的努力是为了小时候吹过的牛逼！
 * Date: 2020/9/21
 * Time: 22:46
 */
namespace app\common\model\mysql;

use think\Model;

class BaseModel extends Model{
    //自动写入时间
    protected $autoWriteTimestamp = true;

    public function updateById($id,$data){
        $data['update_time'] = time();
        return $this->where(["id"=>$id])->save($data);
    }
}
